package com.victor.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.victor.dao_user.UserDao;
import com.victor.entity.YhUsers;
import com.victor.service.UserService;

@Service
public class UserServiceimpl implements UserService {

	@Autowired
	private UserDao userDao;

	@Override
	@Cacheable(value = "user")
	public YhUsers getUserByid(String userid) {
		return userDao.getUserByid(userid);
	}

}
